# @Author   :   yuanxi
# @Time      :  2022/3/16
# @Desc     :   桂健康名医大讲堂

from basic.UIParent import UIParent
from basic.utils.asserts import asserts
from commen.page.ann.myPage import myPage
from commen.page.ann.searchPage import searchPage
from commen.page.ann.indexPage import IndexPage
from commen.page.commen.authorizePage import authorizePage
from commen.page.ann.annApplication.gui_healthy_page import GuiHealthyPage


class GuiHealthyCase(UIParent):

    @classmethod
    def test_gui_health_check(cls):
        '''桂健康名医大讲堂校验'''

        myPage.loginByStatu()
        IndexPage.clickIndex()
        searchPage.searchEvent("桂健康名医大讲堂")
        authorizePage.ifAuthorize()

        status = GuiHealthyPage.gui_health_index()
        asserts.true(status, "桂健康名医大讲堂校验")
